public class Test {

    int a[] = new int[10];

    public Test() {

        for (int i = 0; i < a.length; i++) {

            a[i] = 2 * i + 1;

        }

    }

    public int arraySum(int[] a) {

        int sum = 0;

        for (int i = 0; i < a.length; i++) {

            sum = a[i] + sum;

        }

        return sum;

    }

    public static void main(String args[]) {

        Test as = new Test();

        System.out.println(as.arraySum(as.a));

    }

}